﻿package client;
import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;


public class ComTakeoutGUI extends JDialog {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	/*public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ComTakeoutGUI frame = new ComTakeoutGUI();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}*/

	/**
	 * Create the frame.
	 */
	public ComTakeoutGUI() {
		setTitle("TakeOut");
		setModalityType(ModalityType.APPLICATION_MODAL);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblNewLabel = new JLabel("\u5C06\u4E3A\u4F60\u8F6C\u63A5\u9910\u9986\uFF0C\u662F\u5426\u8F6C\u5165");
		lblNewLabel.setBounds(126, 32, 168, 53);
		contentPane.add(lblNewLabel);
		
		JButton btnNewButton = new JButton("\u786E\u5B9A");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				ResTakeOutInfoGUI res  = new ResTakeOutInfoGUI();
				res.setModalityType(ModalityType.APPLICATION_MODAL);
				res.setLocationRelativeTo(null);
				res.setVisible(true);
			//	rtoGUI.setVisible(true);
			
			}
		});
		btnNewButton.setBounds(151, 125, 93, 23);
		contentPane.add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("\u53D6\u6D88");
		btnNewButton_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				dispose();
				ComEatGUI ceg = new ComEatGUI();
				ceg.setLocationRelativeTo(null);
				ceg.setVisible(true);
				
			}
		});
		btnNewButton_1.setBounds(151, 192, 93, 23);
		contentPane.add(btnNewButton_1);
	}

}
